CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(${PROJECT_ROOT}/HttpServer)


if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${PROJECT_ROOT}/lib)
link_directories(${COMN_DIR}/lib)

add_definitions(-DMG_ENABLE_HTTP_STREAMING_MULTIPART)

aux_source_directory(. SOURCES)
add_executable(DemoConfig ${SOURCES})

if (MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
else()
endif()

target_link_libraries(DemoConfig
	${LIB_PLATFORM}
	debug HttpServerd optimized HttpServer
	)

